package com.whcoding.jpa.pojo;

import lombok.*;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * (OrmDeptPO)表实体类
 *
 * @author makejava
 * @since 2022-03-22 11:31:14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain=true) //链式写法
@Entity
@Table(name = "orm_dept")
@ToString(callSuper = true)
public class OrmDeptPO implements Serializable {

    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**
     * 部门id
     */
    @Basic
    @Column(name = "dept_id")
    private Integer deptId;
    /**
     * 部门编码
     */
    @Basic
    @Column(name = "dept_no")
    private String deptNo;
    /**
     * 部门类型 1,2,3
     */
    @Basic
    @Column(name = "dept_type")
    private Integer deptType;
    /**
     * 部门名称
     */
    @Basic
    @Column(name = "dept_name")
    private String deptName;
    /**
     * 创建时间
     */
    @Basic
    @Column(name = "create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @Basic
    @Column(name = "update_time")
    private Date updateTime;
    /**
     * 部门绩效
     */
    @Basic
    @Column(name = "dept_perf")
    private BigDecimal deptPerf;
    /**
     * 是否有效
     */
    @Basic
    @Column(name = "is_valid_flag")
    private Integer isValidFlag;
    /**
     * 部门简称
     */
    @Basic
    @Column(name = "short_name")
    private String shortName;
    /**
     * 备注
     */
    @Basic
    @Column(name = "remark")
    private String remark;

}